<%@ page import="entity.Characters" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: zhouya
  Date: 2019/6/25/0025
  Time: 3:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        table{border: 1px solid gray;border-collapse: collapse;width: 100% }
        td{border: 1px solid gray;text-align: center;}
        a {color: #01040c; text-decoration:none;}
        a:visited {text-decoration:none;}
        a:hover {color:#ba2636;text-decoration:underline;}
        a:active {color:#ba2636;}
    </style>
    <%
        List<Characters> list=(List<Characters>)request.getAttribute("list");
    %>
</head>
<body>
<div>
    <a href="charactersInsert.jsp">增加</a>
    <table>
        <tr>
            <td>角色ID</td>
            <td>角色名</td>
            <td>操作</td>
        </tr>
        <%for(Characters ls:list){%>
        <tr>
            <td><%=ls.getCharacterID()%></td>
            <td><%=ls.getCharacterName()%></td>
            <td>
                <a href="AdminCharactersUpdateInfoServlet?characterID=<%=ls.getCharacterID()%>">修改</a>
                <a href="AdminCharactersDeleteServlet?characterID=<%=ls.getCharacterID()%>">删除</a>
            </td>
        </tr>
        <%}%>
    </table>
</div>
</body>
</html>
